Heaps' law

As a length of a “document” increases, the number of unique “words” increases as well, albeit not as fast as the number of words in the document so far. Heaps’ law describes the scaling relationship between the total number of words and the number of unique words.